﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AWP_Vl_3_properties
{
    class Person
    {
        public int alter;

        private int _alterII;

        public int alterII
        {
            get
            {
                return _alterII;
            }
            set
            {
                if (value > 0)
                    _alterII = value;
                else
                    throw myException();
            }
        }

        public int alterIII { get; set; }


        private Exception myException()
        {
            throw new NotImplementedException();
        }

    }
}
